package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: WangShengJie
 * @Date: 2025/4/18
 */
@SpringBootApplication

/**
 * 用于‌开启基于注解的 AspectJ 自动代理功能‌，
 * 使 Spring 容器能够识别 @Aspect 注解标记的切面类，
 * 并为目标 Bean 动态生成代理对象，实现 AOP 增强逻辑的织入‌
 */
//@EnableAspectJAutoProxy   方法监听器涉及依赖，当项目报错/方法无法有效被监听时开启；
@EnableScheduling
@EnableAsync
public class GrowingApplication {
    public static void main(String[] args) {
        SpringApplication.run(GrowingApplication.class, args);
        System.out.println("GrowingApplication 启动成功！");
    }
}
